﻿namespace System.ServiceModel.DomainServices.Client
{
    using System;

    public class EntityCollectionChangedEventArgs<TEntity> : EventArgs
    {
        private TEntity _entity;

        public EntityCollectionChangedEventArgs(TEntity entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }
            this._entity = entity;
        }

        public TEntity Entity
        {
            get
            {
                return this._entity;
            }
        }
    }
}

